package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanDemandItem {
    private Integer id;
    private String demandName;
    private String demandDesc;
    private Date createDt;
    private Date updateDt;
    private Integer orderDisp;
    private Integer uploadNum;//上传附件数量

    public Integer getUploadNum() {
		return uploadNum;
	}

	public void setUploadNum(Integer uploadNum) {
		this.uploadNum = uploadNum;
	}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDemandName() {
        return demandName;
    }

    public void setDemandName(String demandName) {
        this.demandName = demandName == null ? null : demandName.trim();
    }

    public String getDemandDesc() {
        return demandDesc;
    }

    public void setDemandDesc(String demandDesc) {
        this.demandDesc = demandDesc == null ? null : demandDesc.trim();
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public Integer getOrderDisp() {
        return orderDisp;
    }

    public void setOrderDisp(Integer orderDisp) {
        this.orderDisp = orderDisp;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanDemandItem)) {
            return false;
        }
        LoanDemandItem other = (LoanDemandItem) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getDemandName() == null ? other == null : this.getDemandName().equals(other.getDemandName())
            && this.getDemandDesc() == null ? other == null : this.getDemandDesc().equals(other.getDemandDesc())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt())
            && this.getOrderDisp() == null ? other == null : this.getOrderDisp().equals(other.getOrderDisp());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getDemandName() != null) {
            hash *= getDemandName().hashCode();
        }
        if (getDemandDesc() != null) {
            hash *= getDemandDesc().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        if (getOrderDisp() != null) {
            hash *= getOrderDisp().hashCode();
        }
        return hash;
    }
}